package com.codebattery.domain.model;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.*;

import java.util.Date;
import java.util.List;

/**
 * 会员定单信息
 *
 * @Author cay91
 * @Date 2020-08-14 9:38 PM
 * @Version 1.0
 */

@Data
public class MemeberOrderInfo {
    @JsonSerialize(using= ToStringSerializer.class)
    private Long orderId; //订单编号
    private Date createTime;  //订单时间
    private String count;   //数量
    private String totalAmount; //总价
    private String receiverAddress; //收货地址
    private String freightAmount;   //运费
    private String status;  //状态
    private String userId;  //用戶ID
    private String userName;    //用戶名
    private List<MemeberOrderDetailInfo> detailInfos;   //详情

    @Data
    public static class ShopInfo {
        private Integer shopId;
        private String shopName;
    }

    private List<ShopInfo> shopInfos;   //合并的商家信息
}
